package scanpackage.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import scanpackage.service.IHelloService;

@RestController
public class TestController {
    @Autowired
    private IHelloService iHelloService;

    @RequestMapping("hello")
    public String sayHello(String name)
    {
        return iHelloService.sayHello(name);
    }
}
